<template>
  <div class="dianqi">
    <div class="dian" v-for="(item, index) in data.live" :key="index">
      <img :src="require('../assets/img/' + item.img)" alt="" />
      <p>{{ item.tit }}</p>
    </div>
  </div>
</template>

<script>
import data from "../assets/json/data.json";
export default {
  data() {
    return {
      data,
    };
  },
};
</script>

<style lang="scss" scoped>
.dianqi {
  height: 100%;
  display: flex;
  flex-wrap: wrap;
}
.dian {
  width: 30%;
  height: 220px;
  background: #fff;
  margin-right: 8px;
  margin-top: 10px;
  //   margin: 5px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  img {
    width: 100%;
  }
  p {
    text-align: center;
  }
}
</style>
